﻿<title>账户余额</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="#(path)/assets/js/jquery.tmpl.min.js"></script> 
#@checkToken() 
<style> 
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	*{margin:0;padding:0;}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
	.zh_list{border-bottom:1px solid #f0f0f0;width:96%;height:50px;line-height:50px;padding:0 2%;background:#FFF}
</style>
<body bgcolor="#f4f5f9" style="margin:0px;#fa3048">
	
	<div align="center" style="width:100%;">
		<div style="background:#fa3048;padding-top:15px;width:100%;margin-bottom:10px;">
			<div style="height:110px;width:90%;color:#fff;">
				<div>资产总额</div>
				<div style="font-size:26px;color:#FFF;margin-top:5px;"><span id="all_assets"></span></div>
				<div style="margin-top:10px;">余额收益:<span id="balance_benefit"></span></div>  
			</div>
		</div> 
		
		<!--加载内容-->
		<div class="zh_list">
			<div style="float:left;color:#626262">账户余额</div>
			<div id="availableAmount" style="float:right;"></div>
		</div> 
		<div class="zh_list">
			<div style="float:left;color:#626262">冻结金额</div>
			<div id="freezebleAmount" style="float:right;"></div>
		</div> 
		<div class="zh_list">
			<div style="float:left;color:#626262">待收收益</div>
			<div id="ready_interest" style="float:right;"></div>
		</div> 
		<div class="zh_list">
			<div style="float:left;color:#626262">待收本金</div>
			<div id="ready_amount" style="float:right;"></div>
		</div> 
		<div class="zh_list">
			<div style="float:left;color:#626262">体验金</div>
			<div id="total_tyj" style="float:right;"></div>
		</div> 
		<div class="zh_list" style="margin-top:10px;">
			<div style="float:left;color:#626262">累计投资金额</div>
			<div id="already_amount" style="float:right;"></div>
		</div> 
		<div class="zh_list">
			<div style="float:left;color:#626262">累计获取收益</div>
			<div id="already_interest" style="float:right;"></div>
		</div> 
	</div>
 
	
	



<script>
var url = "#(path)/user/benefit?token=#(session.token??)";
$.getJSON(url, function(benefit) {
	var benefit = benefit.data;
	$("#all_assets").html(benefit.all_assets+"元");
	$("#availableAmount").html(benefit.availableAmount+"元");
	$("#balance_benefit").html(benefit.balance_benefit+"元");
	$("#freezebleAmount").html(benefit.freezebleAmount+"元");
	$("#ready_interest").html(benefit.ready_interest+"元");
	$("#ready_amount").html(benefit.ready_amount+"元");
	$("#total_tyj").html(benefit.total_tyj+"元");
	$("#already_amount").html(benefit.already_amount+"元");
	$("#already_interest").html(benefit.already_interest+"元");
});	


</script> 



</body>